/*
 * Copyright (c) 2024. hallele, Inc All rights reserved.
 */

package cn.hallele.mc.sdk.usercenter.dto;

import cn.hallele.mc.sdk.usercenter.common.enums.TenantStatusEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * hallele_mc_sdk
 *
 * @author anle5
 * @since 2024/10/13 14:15
 */
@Setter
@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "租户传输对象")
public class TenantDTO implements Serializable {
    @Serial
    private static final long serialVersionUID = 8360414085763308832L;

    /**
     * 身份唯一标识
     */
    @Schema(description = "身份唯一标识")
    private Integer id;

    /**
     * 租户名
     */
    @Schema(description = "租户名")
    private String name;

    /**
     * 父节点id
     */
    @Schema(description = "父节点id")
    private Integer parentId;

    /**
     * 父节点id路径
     */
    @Schema(description = "父节点id路径")
    private String treePath;

    /**
     * 显示顺序
     */
    @Schema(description = "显示顺序")
    private Integer sort;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private TenantStatusEnum status;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 创建人id
     */
    @Schema(description = "创建人id")
    private Long createBy;

    /**
     * 修改人id
     */
    @Schema(description = "修改人id")
    private Long updateBy;
}
